//
//  Common.swift
//  新浪微博
//
//  Created by 季伯文 on 2017/6/29.
//  Copyright © 2017年 bowen. All rights reserved.
//

import UIKit

//屏幕宽高
let JBWSCREENH = UIScreen.main.bounds.height
let JBWSCREENW = UIScreen.main.bounds.width
//通知名
//切换控制器通知名
let JBWSWITCHVIEWCONTROLLERNOTI = NSNotification.Name(rawValue:"JBWSWITCHVIEWCONTROLLERNOTI")
//表情键盘通知
//20个按钮
let JBWEMOTICONBUTTONCLICKNOTI = NSNotification.Name("JBWEMOTICONBUTTONCLICKNOTI")
//删除按钮
let JBWDELETEBUTTONCLICKNOTI = NSNotification.Name("JBWDELETEBUTTONCLICKNOTI")

//微博相关信息
let JBWAPPKEY = "3607486655"
let JBWAPPSECRET = "ee2693de1051df2d85d1d3f1b3315ba0"
let JBWREDIRECT_URI = "http://www.baidu.com"
//微博账号密码
let JBWWBNAME = "1161300651@qq.com"
let JBWWBPASSWD = "wbJibowen1994"
//App Key：3607486655
//App Secret：ee2693de1051df2d85d1d3f1b3315ba0
//RGB颜色
func RGB(r: CGFloat, g: CGFloat, b: CGFloat, alpha: CGFloat = 1) -> UIColor {
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: alpha)
    
}

//随机颜色
func randomColor() -> UIColor{
    //随机数
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    
    return RGB(r: r, g: g, b: b)
}

// 全局字体  相当于OC中宏

//小号字体
let JBWSmallFontSize: CGFloat = 10
//普通字体
let JBWNormalFontSize: CGFloat = 14
//大号字体
let JBWBigFontSize: CGFloat = 18

//主题色
let JBWThemeColor = UIColor.orange
